//
//  FMManager.h
//  NLine
//
//  Created by weixian he on 12-8-29.
//  Copyright (c) 2012年 . All rights reserved.
//

#import <Foundation/Foundation.h>

#import "KeyValueObject.h"

@interface FMManager : NSObject
{
    
}
+(id)sharedInstance;
-(void)initData;
-(void)releaseData;
+(void)showAlertView:(NSString *)message;
+(void)showAlertViewTitle:(NSString *)title;
+(void)showAlertViewTitle:(NSString *)title message:(NSString *)msg;

@property(nonatomic) BOOL isLogin;
@property(nonatomic) BOOL isModel;

@property(nonatomic) BOOL updateMsgCtrl;
@property(nonatomic) BOOL updateInboxCtrl;
@property(nonatomic) BOOL updateSecondCtrl;

@property (nonatomic,copy) NSString *userId;
@property (nonatomic,copy) NSString *userPhotoName;   //头像
@property (nonatomic,copy) NSString *modeIdentify;    //用户类型
@property (nonatomic,copy) NSString *heaerPicName;    //头像字段 头像url：host/“photo”/modelsId/heaerPicName

@property (nonatomic,assign) BOOL slideBarHideFlag;
//设置slideBarHideFlag
- (void)setSlideBarHideFlagWithBoolValue:(BOOL)flag;

@property (nonatomic,retain) KeyValueObject *firstMenuItemFlag;     //一级目录标记
@property (nonatomic,copy)   NSString *secondMenuItemFlag;          //二级目录标记

//获取目录
+ (NSMutableArray *)getMenuDatasOfChoosedFirstMenu:(NSString *)parentId;

//获取id相对应的name
+ (NSString *)getMenuNameOfId:(NSString *)selfId;

//判断是否删除个人资料
+ (void)deletePersonalMessageOfLocal:(NSString *)loginUserId;

/*
first
models
worker
other
admin
*/
//@property(nonatomic) NSString *role;

//私信列表
@property (nonatomic,retain) NSMutableArray *personalFriendLists; //<MyDataObject>
- (void)refreshPersonalFriendListDatas:(NSArray *)array;

//保存首页第一页信息
//+ (void)saveFirstViewModelListDatas:(NSString *)json;

//获取首页第一页信息
//+ (NSString *)getFirstViewModelListDatas;

//保存个人资料
+ (void)savePersonalMessageToLocal:(NSString *)json;

//获取个人资料
+ (NSString *)getPersonalMessageFromLocal;

//
@end
